package com.woniu.supermarket.service;

import com.github.pagehelper.PageInfo;
import com.woniu.supermarket.vo.dealSummaryVo;
import com.woniu.supermarket.vo.dealVo;
import com.woniu.supermarket.vo.exportDealSummaryVo;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Date;
import java.util.List;

public interface IDealService {
    PageInfo<dealVo> findByCons(Integer now, Integer size, String salecodeOrName);

    PageInfo<dealVo> advancedsearchByCons(Integer now, Integer size, Date dealStartTime,
                                          Date dealEndTime, String memberTel, String salecodeOrName,
                                          Integer shid, String staff, Integer typeOrder);

    PageInfo<dealSummaryVo> querySummaryDeal(Integer now, Integer size, String salecodeOrName, Integer searchType);

    void getlist(List<exportDealSummaryVo> dealSummaryList);

    void exportExcel(HttpServletResponse response) throws IOException;
}
